xen/arm: gic-v3: No need to sort the Redistributor regions
authorJulien Grall <julien.grall@arm.com>
Tue, 28 Jun 2016 15:51:54 +0000 (16:51 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 11 Jul 2016 17:43:52 +0000 (18:43 +0100)
commitfdf1c6140420df20ffcdca9a0d7cdd7369fde03a
tree041e0a3081135f63e0faac61bce7e3efa334dd47
parent652a11ee2fa710c05df09b21cfeab6bad94e06cc
xen/arm: gic-v3: No need to sort the Redistributor regions

The sorting was required by the vGIC emulation until commit
9b9d51e98edb8c5c731e2d06dfad3633053d88a4 "xen/arm: vgic-v3:
Correctly retrieve the vCPU associated to a re-distributor".

Furthermore, the code is buggy because both local variables 'l' and 'r'
point to the same region.

So drop the code which sort the Redistributors array.

Reported-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic-v3.c